//
//  Project.m
//  YYZB
//
//  Created by 顾悦 on 16/3/30.
//
//

#import "Project.h"

@implementation Project

- (instancetype)initWithDictionary:(NSDictionary *)d {
    Project *item = [self class].new;
    item.serviceID = d[@"ServiceCat1Id"];
    item.categoryID = d[@"ServiceCat2Id"];
    item.ID = d[@"ServiceProductId"];
    item.name = d[@"ServiceProductName"];
    item.imagePath = d[@"AppPicPath"];
    item.chargingUnit = d[@"ChargingUnit"];
    item.paymentType = d[@"PaymentType"];
    item.serviceProgramPriceID = d[@"ServiceProgramPriceId"];
    item.price = d[@"Price"];
    item.unitExtend = d[@"UnitExtend"];
    item.isGroupBy = [d[@"IsGroupBy"] integerValue];

    return item;
}

@end
